import request from '@/utils/request'

export const getQueryBlogs = (data) => {
  return request({
    method: 'GET',
    url: '/api/blogarticle',
    data
  })
}

export const getBlogById = (courseId) => {
  return request({
    method: 'GET',
    url: '/api/blogarticle/' + courseId
  })
}

export const setPublic = (courseId, value) => {
  return request({
    method: 'GET',
    url: '/api/blogarticle/setblogpublic?id=' + courseId + '&&isPublic=' + value
  })
}
export const setTop = (courseId, value) => {
  return request({
    method: 'GET',
    url: '/api/blogarticle/setblogtop?id=' + courseId + '&&isTop=' + value
  })
}
